package com.shop.cereshop.business.dao.role;

import com.shop.cereshop.commons.domain.permission.CerePlatformPermission;
import com.shop.cereshop.commons.domain.role.CerePlatformRolePermission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CerePlatformRolePermissionDAO {
    int insert(CerePlatformRolePermission record);

    int insertSelective(CerePlatformRolePermission record);

    void deleteByRoleId(@Param("roleId") Long roleId);

    void insertBatch(@Param("list") List<CerePlatformRolePermission> list);

    Long check(@Param("roleId") Long roleId);

    void deleteByPermissionId(@Param("permissionId") Long permissionId);

    CerePlatformPermission select(@Param("id") Long id);
}